package com.example.register1.controller;

import com.example.register1.result.Result;
import com.example.register1.service.DetailService;
import com.example.register1.vo.DetailVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/detail")
public class DetailController {


    @Autowired
    private DetailService detailService;
    @GetMapping
    public Result<DetailVO> detail(String name){
        return detailService.selectByName(name);
    }


}
